home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / convrtrs / pbmplus / update4.lha / src / ppm / ppmtogif.c.diff < prev    next >
Encoding:
Text File  |  1993-07-08  |  1.6 KB  |  45 lines

  1. *** ppmtogif.c.orig    Thu Jul 08 18:11:16 1993
  2. --- ppmtogif.c    Thu Jul 08 18:23:10 1993
  3. ***************
  4. *** 25,31 ****
  5. --- 25,35 ----
  6.   /*
  7.    * Pointer to function returning an int
  8.    */
  9. + #ifndef A_FORCEPROTO        /* -IUW */
  10.   typedef int (* ifunptr)();
  11. + #else
  12. + typedef int (* ifunptr)(int, int);
  13. + #endif /* A_FORCEPROTO */
  14.   
  15.   /*
  16.    * a code_int must be able to hold 2**BITS values of type int, and also -1
  17. ***************
  18. *** 43,49 ****
  19.   static int GetPixel ARGS(( int x, int y ));
  20.   static void BumpPixel ARGS(( void ));
  21.   static int GIFNextPixel ARGS(( ifunptr getpixel ));
  22. ! static void GIFEncode ARGS(( FILE* fp, int GWidth, int GHeight, int GInterlace, int Background, int BitsPerPixel, ifunptr GetPixel ));
  23.   int Red[MAXCOLORS],Green[MAXCOLORS],Blue[MAXCOLORS],perm[MAXCOLORS],permi[MAXCOLORS];
  24.   int colors;
  25.   pixval maxtmp;
  26. --- 47,53 ----
  27.   static int GetPixel ARGS(( int x, int y ));
  28.   static void BumpPixel ARGS(( void ));
  29.   static int GIFNextPixel ARGS(( ifunptr getpixel ));
  30. ! static void GIFEncode ARGS(( FILE* fp, int GWidth, int GHeight, int GInterlace, int Background, int BitsPerPixel, int Red[], int Green[], int Blue[], ifunptr GetPixel ));
  31.   int Red[MAXCOLORS],Green[MAXCOLORS],Blue[MAXCOLORS],perm[MAXCOLORS],permi[MAXCOLORS];
  32.   int colors;
  33.   pixval maxtmp;
  34. ***************
  35. *** 56,61 ****
  36. --- 60,67 ----
  37.   static void char_init ARGS(( void ));
  38.   static void char_out ARGS(( int c ));
  39.   static void flush_char ARGS(( void ));
  40. + static int sqr ARGS((int x));
  41. + static int closestcolor ARGS((pixel color));
  42.   
  43.   static pixel** pixels;
  44.   static colorhash_table cht;
  45.